From 2daaea2f983e54aa5715885e1d3eacfdc25aaf34 Mon Sep 17 00:00:00 2001 From: George Lebl Date: Sun, 17 Jan 1999 03:49:31 +0000 Subject: [PATCH] for NO_WINDOW widgets, add their allocation.y to the position of the Sat Jan 16 19:42:48 1999 George Lebl * gtk/gtktooltips.c: for NO_WINDOW widgets, add their allocation.y to the position of the tooltip. This fixes tooltip positioning problems with some widgets such as a checkbox. --- ChangeLog | 6 ++++++ ChangeLog.pre-2-0 | 6 ++++++ ChangeLog.pre-2-10 | 6 ++++++ ChangeLog.pre-2-2 | 6 ++++++ ChangeLog.pre-2-4 | 6 ++++++ ChangeLog.pre-2-6 | 6 ++++++ ChangeLog.pre-2-8 | 6 ++++++ gtk/gtktooltips.c | 2 ++ 8 files changed, 44 insertions(+) diff --git a/ChangeLog b/ChangeLog index dfb0745bb8..87980f2939 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Sat Jan 16 19:42:48 1999 George Lebl + + * gtk/gtktooltips.c: for NO_WINDOW widgets, add their allocation.y + to the position of the tooltip. This fixes tooltip positioning + problems with some widgets such as a checkbox. + Sat Jan 16 14:01:53 1999 Stuart Parmenter * gtk/gtklayout.c (gtk_layout_put): check for child widget being NULL diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index dfb0745bb8..87980f2939 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,9 @@ +Sat Jan 16 19:42:48 1999 George Lebl + + * gtk/gtktooltips.c: for NO_WINDOW widgets, add their allocation.y + to the position of the tooltip. This fixes tooltip positioning + problems with some widgets such as a checkbox. + Sat Jan 16 14:01:53 1999 Stuart Parmenter * gtk/gtklayout.c (gtk_layout_put): check for child widget being NULL diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index dfb0745bb8..87980f2939 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +Sat Jan 16 19:42:48 1999 George Lebl + + * gtk/gtktooltips.c: for NO_WINDOW widgets, add their allocation.y + to the position of the tooltip. This fixes tooltip positioning + problems with some widgets such as a checkbox. + Sat Jan 16 14:01:53 1999 Stuart Parmenter * gtk/gtklayout.c (gtk_layout_put): check for child widget being NULL diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index dfb0745bb8..87980f2939 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,9 @@ +Sat Jan 16 19:42:48 1999 George Lebl + + * gtk/gtktooltips.c: for NO_WINDOW widgets, add their allocation.y + to the position of the tooltip. This fixes tooltip positioning + problems with some widgets such as a checkbox. + Sat Jan 16 14:01:53 1999 Stuart Parmenter * gtk/gtklayout.c (gtk_layout_put): check for child widget being NULL diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index dfb0745bb8..87980f2939 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,9 @@ +Sat Jan 16 19:42:48 1999 George Lebl + + * gtk/gtktooltips.c: for NO_WINDOW widgets, add their allocation.y + to the position of the tooltip. This fixes tooltip positioning + problems with some widgets such as a checkbox. + Sat Jan 16 14:01:53 1999 Stuart Parmenter * gtk/gtklayout.c (gtk_layout_put): check for child widget being NULL diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index dfb0745bb8..87980f2939 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,9 @@ +Sat Jan 16 19:42:48 1999 George Lebl + + * gtk/gtktooltips.c: for NO_WINDOW widgets, add their allocation.y + to the position of the tooltip. This fixes tooltip positioning + problems with some widgets such as a checkbox. + Sat Jan 16 14:01:53 1999 Stuart Parmenter * gtk/gtklayout.c (gtk_layout_put): check for child widget being NULL diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index dfb0745bb8..87980f2939 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +Sat Jan 16 19:42:48 1999 George Lebl + + * gtk/gtktooltips.c: for NO_WINDOW widgets, add their allocation.y + to the position of the tooltip. This fixes tooltip positioning + problems with some widgets such as a checkbox. + Sat Jan 16 14:01:53 1999 Stuart Parmenter * gtk/gtklayout.c (gtk_layout_put): check for child widget being NULL diff --git a/gtk/gtktooltips.c b/gtk/gtktooltips.c index 4b219471df..2450398329 100644 --- a/gtk/gtktooltips.c +++ b/gtk/gtktooltips.c @@ -472,6 +472,8 @@ gtk_tooltips_draw_tips (GtkTooltips * tooltips) gdk_window_get_pointer (NULL, &x, NULL, NULL); gdk_window_get_origin (widget->window, NULL, &y); + if (GTK_WIDGET_NO_WINDOW (widget)) + y += widget->allocation.y; x -= ((w >> 1) + 4); -- 2.30.2